<template>
	<view>
		<use-navbar ref="navbar" type="custom" :show="true" :back="false" :bg-color="navbarBgcolor">
		</use-navbar>
		<web-view :webview-styles="webviewStyles" :src="weburl" full-screen></web-view>
		<cover-view
			style="position: fixed;top: 15vh;z-index: 99;background-color: aqua;padding: 5px 15px;left: 10vw;">111</cover-view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#ff6a6c'
					}
				},
				// 路径地址
				weburl: ''
			}
		},
		onLoad(res) {
			console.log(res)
			uni.setNavigationBarTitle({
				title: res.title || `${this.$config.appabbr} ${res.title || ''}`
			});
			uni.showLoading();
			setTimeout(() => {
				uni.hideLoading()
			}, 750)
			this.weburl = decodeURIComponent(res.url);
			console.log(this.weburl)
		}
	}
</script>

<style lang="scss">
</style>